package com.gxl.butt.factory;

import com.gxl.butt.domain.BT_Ip;
import com.gxl.butt.domain.BT_Token;
import com.gxl.butt.domain.FKTopic;

import java.util.Date;

/**
 * Created by guoxiaolin on 2018/11/30.
 */
public class ConfigFactory {

    public static BT_Ip getIpInstance(String ip, Long userid, String openid){
        BT_Ip bt_ip = new BT_Ip();
        String nowtime = String.valueOf(new Date().getTime());
        bt_ip.setCreateTime(nowtime);
        bt_ip.setGmtTime(nowtime);
        bt_ip.setIp(ip);
        bt_ip.setOpenid(openid);
        bt_ip.setUserid(userid);
        return bt_ip;
    }
    public static BT_Token getTokenInstance(String ip, String userid){
        BT_Token b =  new BT_Token();
        b.setOpenid("111111");
        return b;
    }
    public static FKTopic getTopicInstance(String ip, String userid){
        FKTopic b =  new FKTopic();
        b.setOpenid("3333333");
        return b;
    }
}
